package com.jsnu.xiaochi.pojo;

import java.sql.Timestamp;

public class Food {
    private String id;

    private String name;

    private String category;

    private String foodImg;

    private String intro;

    private String score;

    private String status;

    private Timestamp createTime;

    private Integer commentCount;

    public Food(String id, String name, String category, String foodImg, String intro, String score, String status, Timestamp createTime, Integer commentCount) {
        this.id = id;
        this.name = name;
        this.category = category;
        this.foodImg = foodImg;
        this.intro = intro;
        this.score = score;
        this.status = status;
        this.createTime = createTime;
        this.commentCount = commentCount;
    }

    public Food() {
        super();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category == null ? null : category.trim();
    }

    public String getFoodImg() {
        return foodImg;
    }

    public void setFoodImg(String foodImg) {
        this.foodImg = foodImg == null ? null : foodImg.trim();
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro == null ? null : intro.trim();
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score == null ? null : score.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Integer getCommentCount() {
        return commentCount;
    }

    @Override
    public String toString() {
        return "Food{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", category='" + category + '\'' +
                ", foodImg='" + foodImg + '\'' +
                ", intro='" + intro + '\'' +
                ", score='" + score + '\'' +
                ", status='" + status + '\'' +
                ", createTime=" + createTime +
                ", commentCount=" + commentCount +
                '}';
    }

    public void setCommentCount(Integer commentCount) {
        this.commentCount = commentCount;
    }
}